package demo.web;

import demo.vo.ApiResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.Random;

@RestController
public class DemoRestController {

    private static final Logger logger = LoggerFactory.getLogger(DemoRestController.class);
    Random random = new Random();


    @GetMapping("/")
    public ApiResult<String> index(HttpServletRequest request) {
        return new ApiResult<>("WELCOME");
    }


}
